﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DoeObjects;

namespace DoeLibsMVC.Controllers
{
    public class NotificationController : BaseController
    {
        [Authorize]
        public ActionResult Index()
        {
            return View();
        }

		[Authorize]
		public bool RemoveNotification(int id, int msgId)
		{
			if (Security.SecurityHelper.getCurrentUser().UserId == id &&
				Notification.delete(msgId))
			{
				return true;
			}
			else return false;
		}
    }
}
